import java.util.Scanner;

// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
public class Main {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        double sum=0;
        int m = 0;
        while(reader.hasNextDouble()){
            double x = reader.nextDouble();
            assert x>=0&&x<=100:"这是一个非法的成绩数据";
            m = m+1;
            sum = sum+x;

        }
        System.out.printf("%d个数的和为：%f\n",m,sum);
        System.out.printf("%d个数的平均值是%f\n",m,sum/m);
    }
}